from django.db import models


class PayMethod(models.Model):
    name = models.CharField(max_length=30, verbose_name='名称')
    enabled = models.BooleanField(verbose_name=u'是否可用', default=False)
    priority = models.IntegerField(verbose_name=u'优先级（数字越大优先级越高）', default=0)

    class Meta:
        verbose_name = u'支付方式'
        verbose_name_plural = u'支付方式'

    def __str__(self):
        return self.name
